package cn.cdeden.resource.domain;

import cn.cdeden.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * 对象存储桶配置配置对象 sys_oss_barrel
 *
 * @author Yu.
 * @date 2024-12-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_oss_barrel")
public class SysOssBarrel extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 桶编号主键
     */
    @TableId(value = "oss_barrel_id")
    private Long ossBarrelId;

    /**
     * 配置编号
     */
    private Long ossConfigId;

    /**
     * 桶名称
     */
    private String bucketName;

    /**
     * 前缀
     */
    private String prefix;

    /**
     * 桶权限类型(0=private 1=public 2=custom)
     */
    private String accessPolicy;

    /**
     * 扩展字段
     */
    private String ext1;

    /**
     * 版本类型(0=OFF 1=Enabled 2=Suspended)
     */
    private String versionPolicy;

    /**
     * 库所属模块
     */
    private String moduleType;

    /**
     * 备注
     */
    private String remark;


}
